home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10186 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Calling <windows.h>CreateThread(...) from within a CWinApp object.
  5. Date: 6 Mar 1996 11:26:36 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4hjspc$rbk@news1.usa.pipeline.com>
  8. References: <Dnt4xw.ML0@news.tcd.ie>
  9. NNTP-Posting-Host: pipe10.h1.usa.pipeline.com
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete)
  13. X-Newsreader: Pipeline v3.5.0
  14.  
  15. On Mar 05, 1996 18:34:37 in article <Calling <windows.h>CreateThread(...)
  16. from within a CWinApp object.>, 'mdennehy@tcd.ie (Sparks)' wrote: 
  17.  
  18.  
  19. >For a Simple/SML compiler/simulator I am writing for a project, I decided 
  20. >to have the simulator run as a seperate thread so that an infinite loop in
  21.  
  22. >the generated code would not lock the machine inconviently. However, when 
  23.  
  24. >calling CreateThread() from within the CWinApp object, it does not appear
  25. to  
  26. >be able to see the <windows.h> version of the function, ie. the compiler 
  27. >does not appear to be able to use the declerations of the functions to  
  28. >seperate the two in a call, as I had thought it could.  I am using  
  29. >VC++ v2.0 with v3.0 of the MFC library, running on Windows NT. 
  30. >Has anyone got any suggestions, either as to the source of the problem, 
  31. >or a possible cure ? 
  32. >Thank you... 
  33. Use the global scopeoperator as in ::CreateThread(§yAttr, etc....); 
  34.  
  35. >-- 
  36. >Mark "Sparks" Dennehy        Ham Radio : EI5EDB (2m FM only) :-( 
  37. >Engineering Undergrad        Internet  : mdennehy@tcd.ie 
  38. >Trinity College Dublin         
  39. -- 
  40. Pete Grant 
  41. Kalevi, Inc. 
  42. Software Engineering & development
  43.